import Router from 'koa-router';
import { findRouter, registryRoutes } from './utils/tools.js'

const router = new Router();


// 拿到所有的js文件
let files = findRouter();


// 遍历js文件，并注册路由
registryRoutes(files, router);


export let routerMiddle = router.routes();

